<template>
  <div>
    <navTop text="我的收藏" />
    <div v-if="collectData.length>0">
      <Content v-for="item in collectData" :key="item.id" :item="item" />
    </div>
    <van-empty description="没有收藏内容" v-else />
  </div>
</template>

<script>
// import Content from "../../components/content";
// import navTop from "../../components/navTop";
export default {
  components: {
    Content: () => import("../../components/content"),
    navTop: () => import("../../components/navTop")
  },
  data() {
    return {
      collectData: [],

    };
  },
  created() {
    this.$axios({
      url: "/user_star",
    }).then(res => {
      this.collectData = res.data.data;
      // console.log(this.collectData);
    });
  },
  methods: {
  }
};
</script>

<style>
</style>
